import { useState } from 'react';
import {
    Link, useLocation
} from 'react-router-dom';
function Classfity({tags}:any) {
      console.log(tags.split(' '));
      let tag = tags.split(' ')
    return (
        <div>
            <Link to={{ pathname: '/OneClass' }} className='Demo1'>{tag[0]}</Link>
            <Link to={{ pathname: '/TwoClass' }} className='Demo1'>{tag[1]}</Link>
            <Link to={{ pathname: '/ThreeClass' }} className='Demo1'>{tag[2]}</Link>
            <Link to={{ pathname: '/FuterClass' }} className='Demo1'>{tag[3]}</Link>
            <Link to={{ pathname: '/FanClass' }} className='Demo1'>{tag[4]}</Link>
        </div>




    );
}
export default Classfity;
